#!/bin/sh

if [ ! -e %OPTWARE_TARGET_PREFIX%/var/log/freshclam.log ]; then
  touch %OPTWARE_TARGET_PREFIX%/var/log/freshclam.log
  chown clamav:clamav %OPTWARE_TARGET_PREFIX%/var/log/freshclam.log
fi

%OPTWARE_TARGET_PREFIX%/bin/freshclam --checks=24 --daemon --user=clamav --log=%OPTWARE_TARGET_PREFIX%/var/log/freshclam.log

